from rest_framework import serializers

from apps.function.models import FunctionModel, FunctionDetailModel


class FunctionSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = FunctionModel
        fields = '__all__'


class FunctionDetailSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = FunctionDetailModel
        fields = '__all__'
